package homework;

public class Worker extends Employee{
    //普通员工没有特有属性
    public Worker(String name, double daySal, int workDays, double grade) {
        super(name, daySal, workDays, grade);
    }

    @Override
    public void printSal() { // 普通员工和Employee输出工资的计算方法一样，所以直接复用
        System.out.print("普通员工 ");
        super.printSal();
    }
}
